package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.SopRapidPathological;
import com.zhijian.medical.entity.vo.request.SopRapidPathologicalSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.SopRapidPathologicalSaveVo;
import com.zhijian.medical.entity.vo.request.SopRapidPathologicalSearchVo;
import com.zhijian.medical.entity.vo.response.SopRapidPathologicalVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * SOP-术中快速病理考核 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-11-20 11:27:37
 */
public interface SopRapidPathologicalService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    SopRapidPathological selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    SopRapidPathologicalVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param sopRapidPathological
    * @return
    */
    Long insert(SopRapidPathological sopRapidPathological);

    /**
    * 动态新增
    *
    * @param sopRapidPathological
    * @return
    */
    Long insertSelective(SopRapidPathological sopRapidPathological);

    /**
    * 更改
    *
    * @param sopRapidPathological
    * @return
    */
    boolean update(SopRapidPathological sopRapidPathological);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(SopRapidPathological record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(SopRapidPathologicalSaveOrUpdateVo saveOrUpdateVo);


    /**
     * 保存
     *
     * @param param
     * @return
     */
    boolean saveList(SopRapidPathologicalSaveVo param);
    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(SopRapidPathologicalSaveOrUpdateVo saveOrUpdateVo);

    boolean modifyNew(SopRapidPathologicalSaveVo param);
    /**
    * 列表
    *
    * @param sopRapidPathologicalSearchVo
    * @return
    */
    SopRapidPathologicalVo selectOne(SopRapidPathologicalSearchVo sopRapidPathologicalSearchVo);

    /**
    * 总数
    *
    * @param sopRapidPathologicalSearchVo
    * @return
    */
    Integer count(SopRapidPathologicalSearchVo sopRapidPathologicalSearchVo);

    /**
    * 列表
    *
    * @param sopRapidPathologicalSearchVo
    * @return
    */
    List<SopRapidPathologicalVo> selectList(SopRapidPathologicalSearchVo sopRapidPathologicalSearchVo);

    /**
    * 分页查询
    *
    * @param sopRapidPathologicalSearchVo
    * @return
    */
    Page<SopRapidPathologicalVo> selectPage(SopRapidPathologicalSearchVo sopRapidPathologicalSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<SopRapidPathological> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param sopRapidPathologicalSearchVo
    * @return
    */
    void deleteByCondition(SopRapidPathologicalSearchVo sopRapidPathologicalSearchVo);
}